package com.jianbing.shasha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.shasha.mapper.ShashaRewardMapper;
import com.jianbing.shasha.domain.ShashaReward;
import com.jianbing.shasha.service.IShashaRewardService;

/**
 * 用户能够获得奖励记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
@Service
public class ShashaRewardServiceImpl implements IShashaRewardService 
{
    @Autowired
    private ShashaRewardMapper shashaRewardMapper;

    /**
     * 查询用户能够获得奖励记录
     * 
     * @param id 用户能够获得奖励记录主键
     * @return 用户能够获得奖励记录
     */
    @Override
    public ShashaReward selectShashaRewardById(Integer id)
    {
        return shashaRewardMapper.selectShashaRewardById(id);
    }

    /**
     * 查询用户能够获得奖励记录列表
     * 
     * @param shashaReward 用户能够获得奖励记录
     * @return 用户能够获得奖励记录
     */
    @Override
    public List<ShashaReward> selectShashaRewardList(ShashaReward shashaReward)
    {
        return shashaRewardMapper.selectShashaRewardList(shashaReward);
    }

    /**
     * 新增用户能够获得奖励记录
     * 
     * @param shashaReward 用户能够获得奖励记录
     * @return 结果
     */
    @Override
    public int insertShashaReward(ShashaReward shashaReward)
    {
        return shashaRewardMapper.insertShashaReward(shashaReward);
    }

    /**
     * 修改用户能够获得奖励记录
     * 
     * @param shashaReward 用户能够获得奖励记录
     * @return 结果
     */
    @Override
    public int updateShashaReward(ShashaReward shashaReward)
    {
        return shashaRewardMapper.updateShashaReward(shashaReward);
    }

    /**
     * 批量删除用户能够获得奖励记录
     * 
     * @param ids 需要删除的用户能够获得奖励记录主键
     * @return 结果
     */
    @Override
    public int deleteShashaRewardByIds(Integer[] ids)
    {
        return shashaRewardMapper.deleteShashaRewardByIds(ids);
    }

    /**
     * 删除用户能够获得奖励记录信息
     * 
     * @param id 用户能够获得奖励记录主键
     * @return 结果
     */
    @Override
    public int deleteShashaRewardById(Integer id)
    {
        return shashaRewardMapper.deleteShashaRewardById(id);
    }
}
